package com.wenxixuanwu.fruitstore.mapper;

import com.wenxixuanwu.fruitstore.Vo.CommentVo;
import com.wenxixuanwu.fruitstore.entity.Comment;
import com.wenxixuanwu.fruitstore.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CommentMapper {

    List<CommentVo> getComment();

    List<CommentVo> getCommentById(int id);

    List<User> getCommentId(List<Integer> list);

    List<Integer> getUserId(int id);

    int insetComment(Comment comment);

    int updateComment(int id);

    CommentVo selectById(int id);

    int setComment(int id);

    int reductionComment(int id);

    int setDefaultComment(int id);

    List<CommentVo> getComments(List<Integer> list);
}
